package cn.s1995.sloth.bizs.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;
import cn.s1995.sloth.bizs.entity.base.BaseEntity;
import java.time.LocalDateTime;

/**
 * 消息
 *
 * @author sloth
 * @date 2024-01-06 10:01:34
 */
@Data
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Schema(description = "消息")
@TableName("biz_message")
public class Message extends BaseEntity {


	/**
	* ID
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "ID")
    private Long id;

	/**
	* 来源id
	*/
    @Schema(description = "来源id")
    private Long fromId;

	/**
	* 接收方id
	*/
    @Schema(description = "接收方id")
    private Long toId;

	/**
	* 类型：1.订单 2.系统
	*/
    @Schema(description = "类型：1.订单 2.系统")
    private Integer type;

	/**
	* 状态
	*/
    @Schema(description = "状态")
    private Integer state;

	/**
	* 标题
	*/
    @Schema(description = "标题")
    private String title;

	/**
	* 内容
	*/
    @Schema(description = "内容")
    private String content;

	/**
	* 绑定id
	*/
    @Schema(description = "绑定id")
    private Long bindId;

	/**
	* 绑定类型：1.订单 2.视频评论
	*/
    @Schema(description = "绑定类型：1.订单 2.视频评论")
    private Integer bindType;

	/**
	* 是否已阅
	*/
    @Schema(description = "是否已阅")
    private Boolean hasRead;
}
